﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


using BASE;

public partial class Admin_ykien : System.Web.UI.Page
{
    public int cout=1;
    protected void Page_Load(object sender, EventArgs e)
    {

        //check quyen vao trang

        if (Utils.getIntSession("userid") == 0)
        {
            Response.Redirect("/admin/login.aspx");
        }
        busMenu busM = new busMenu();
        if (!busM.checkQuyenVaoTrang(Utils.getIntSession("userid"), Constants.ADMINY_DSYKIEN))
        {
            Response.Redirect("/admin/");
        }

        Session["trang"] = Constants.ADMINYKIEN;
        if (!IsPostBack)
        {
            entYKien entYK = new entYKien();
            busYKien busYK = new busYKien();
            entYK = busYK.getbyid(Utils.getIntQuery("id"), Utils.getIntSession("userid"));
            lb_chude.Text = entYK.ChuDe;
            lb_noidung.Text = entYK.NoiDung;
            lb_ykienid.Text = entYK.YKienId.ToString() ;
        }
    }
    protected void txt_gui_Click(object sender, EventArgs e)
    {

    }
}